|
Requests is a Python HTTP library, released under the Apache2 License. The goal of the project is to make HTTP requests simpler and more human-friendly. The current version is 2.6.0〔(Project homepage )〕 == Example code == >>> import requests >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers() 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text # doctest: +ELLIPSIS u'{"type":"User"...' >>> r.json() # doctest: +ELLIPSIS {u'private_gists': 419, u'total_private_repos': 77, ...} 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Requests (software)」の詳細全文を読む スポンサード リンク
|